package pe.com.bn.sach.domain;

/**
 * Bnchf33FinanciarGastosId entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class Bnchf33FinanciarGastosId implements java.io.Serializable {

	// Fields

	private Bnchf13Expediente bnchf13Expediente;
	private Bnchf41UnidadProc bnchf41UnidadProc;
	private Long f33IdVersion;

	// Constructors

	/** default constructor */
	public Bnchf33FinanciarGastosId() {
	}

	/** full constructor */
	public Bnchf33FinanciarGastosId(Bnchf13Expediente bnchf13Expediente,
			Bnchf41UnidadProc bnchf41UnidadProc, Long f33IdVersion) {
		this.bnchf13Expediente = bnchf13Expediente;
		this.bnchf41UnidadProc = bnchf41UnidadProc;
		this.f33IdVersion = f33IdVersion;
	}

	// Property accessors

	public Bnchf13Expediente getBnchf13Expediente() {
		return this.bnchf13Expediente;
	}

	public void setBnchf13Expediente(Bnchf13Expediente bnchf13Expediente) {
		this.bnchf13Expediente = bnchf13Expediente;
	}

	public Bnchf41UnidadProc getBnchf41UnidadProc() {
		return this.bnchf41UnidadProc;
	}

	public void setBnchf41UnidadProc(Bnchf41UnidadProc bnchf41UnidadProc) {
		this.bnchf41UnidadProc = bnchf41UnidadProc;
	}

	public Long getF33IdVersion() {
		return this.f33IdVersion;
	}

	public void setF33IdVersion(Long f33IdVersion) {
		this.f33IdVersion = f33IdVersion;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof Bnchf33FinanciarGastosId))
			return false;
		Bnchf33FinanciarGastosId castOther = (Bnchf33FinanciarGastosId) other;

		return ((this.getBnchf13Expediente() == castOther
				.getBnchf13Expediente()) || (this.getBnchf13Expediente() != null
				&& castOther.getBnchf13Expediente() != null && this
				.getBnchf13Expediente()
				.equals(castOther.getBnchf13Expediente())))
				&& ((this.getBnchf41UnidadProc() == castOther
						.getBnchf41UnidadProc()) || (this
						.getBnchf41UnidadProc() != null
						&& castOther.getBnchf41UnidadProc() != null && this
						.getBnchf41UnidadProc().equals(
								castOther.getBnchf41UnidadProc())))
				&& ((this.getF33IdVersion() == castOther.getF33IdVersion()) || (this
						.getF33IdVersion() != null
						&& castOther.getF33IdVersion() != null && this
						.getF33IdVersion().equals(castOther.getF33IdVersion())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getBnchf13Expediente() == null ? 0 : this
						.getBnchf13Expediente().hashCode());
		result = 37
				* result
				+ (getBnchf41UnidadProc() == null ? 0 : this
						.getBnchf41UnidadProc().hashCode());
		result = 37
				* result
				+ (getF33IdVersion() == null ? 0 : this.getF33IdVersion()
						.hashCode());
		return result;
	}

}